<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的</title>
    <link rel="stylesheet" href="css/style2.css">
    <link rel="stylesheet" href="css/style.css">
    <script src="js/jquery-1.10.2.min.js"></script>
    <script src="js/amazeui.min.js"></script>
    <link rel="stylesheet" href="css/amazeui.min.css">
    <script>
        var iScale = 1;
        iScale = iScale / window.devicePixelRatio;
        document.write('<meta name="viewport" content="width=device-width,user-scalable=no,' +
                'initial-scale=' + iScale + ',minimum-scale=' + iScale + ',maximum-scale=' + iScale + '">');
    </script>
</head>
<body style="background:#FFFFFF">
<div class="my-banner">
    <a href="">
    <img src="img/my-bg.png" alt="">
    </a>
</div>
<div class="txt-inp">

    <input class="inp-gh" placeholder="工号" type="text" >
    <input class="inp-gh inp-xm" placeholder="姓名" type="text" >
    <input class="login-btn" type="button" value="登录">
</div>

</body>
<script>
    $(function(){

        //动态更新fontsize
        var width = $(document).width();
        var size = width/16;
        console.log(size);
        $('html').css('fontSize',size+'px');

    })
</script>
</html>